#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "arvore.h"


//main
main ( int argc, char *argv[] ){

    FILE *entrada;
    FILE *entrada2;
    Tabela x;
    int opt;
    char palavra[10];

    opt= getopt(argc,argv,":e:");
    
    switch(opt)
    {
    	case 'e':
			entrada = fopen(optarg,"r");
			break;

	default:
			break;
    }
    
    inicializa(&x);
    read2(&x, entrada);
    imprimir(&x);
	
}
